package 异常的概念与体系结构.异常的概念.数组越界异常;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-06-21
 * Time: 16:02
 */
//数组越界异常
public class Test {
    public static void main(String[] args) {
        int[] array = {1, 2, 3};
        System.out.println(array[100]);
    }
}

/*
执行结果：
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 100
 */